<?php if(count($this->paginator)): ?>
	<table class="sm_tbl_classic">
		<thead>
			<tr>
				<th><?php echo $this->translate('TABLE_HEADER_NAME') ?></th>
				<th><?php echo $this->translate('TABLE_HEADER_FANPAGES') ?></th>
				<th><?php echo $this->translate('TABLE_HEADER_STARTDATE') ?></th>
				<th><?php echo $this->translate('TABLE_HEADER_ENDDATE') ?></th>
				<th><?php echo $this->translate('TABLE_HEADER_STATUS') ?></th>
			</tr>
		</thead>
		<tbody>
			<?php
			foreach($this->paginator->getCurrentItems() as $contest):
				/* @var $contest Core_Model_Contest */
				?>
				<tr>
					<td><?php echo $this->escape($contest->getTitle()) ?></td>
					<td>
						<?php
						$arrPages = array_combine(explode(',', $contest->id_pages), explode('^', $contest->name_pages));
						echo $this->social->render('listFanpages', array('arrPages' => $arrPages, 'view' => $this));
						?>
					</td>
					<td>
						<?php echo $contest->getStartDate() ?>
					</td>
					<td>
						<?php echo $contest->getEndDate() ?>
					</td>
					<td><?php echo $this->translate($contest->getStatusLabel()) ?></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
<?php else: ?>
	<div class="">
	    <p>No item is available.</p>
	</div>
<?php endif; ?>